<?php

class Core_Backend_Component_Permission_View_Accredit_Action_Edit extends Core_Backend_Component_Permission_View_Accredit_Action_Create {

    protected function buildForm($form) {
        parent::buildForm($form);
        if($this->getModel()->getAccessControl() == 'allow_role') {
            $form->getInput('role_ids')
                    ->setValue($this->getModel()->getRoleIds())
                    ->getField()
                    ->setHidden(FALSE);
        }
    }
}